package defaulPackage;

public class File {
	private String name;
	private int date;
	
	public File(String name, int date){
		this.name = name;
		this.date = date;
	}

	public String getName() {
		return name;
	}

	public int getDater() {
		return date;
	}
	
	public boolean match(File file){
		if (!name.equals(file.getName())) return false;
		if (date != file.getDater()) return false;
		return true;
	}

}
